   hint "place2";
  _killscript=false;
	if (movingobject) then 
  {
     _killscript=true;
    switch (ddisplacement) do
    {
    case false:
    {
      sleep 0.25;
      _list = nearestObjects  [[getPos lapin select 0,getPos lapin select 1,getPos lapin select 2],["Man","Car","Truck","Tank","Helicopter","Plane","Ship","ReammoBox","StaticWeapon"],500];
	    
	    _n=0;
	    _source = _list select _n;
	    while {_source==lapin} do
	    {
	    _source = _list select _n;
	    _n=_n+1;
      };
      
		  if ((count _list)==0) exitwith {breakclic = 0;hint "!!! No units found !!!"};
      
      object3D=_source;
      //lapin setpos [getPos object3D select 0, getPos object3D select 1,getPos object3D select 2];
      //lapin setposasl [getPosasl object3D select 0, getPosasl object3D select 1,getPosasl object3D select 2];
      ctrlSetText[10004,"Drop"];
      VtsHightstep = 1;
			VtsHight = 0.0;
			VtsHightmin = 2;
			VTScamtarget = object3D;

			if (typeof object3D == "Man")  then { VtsHightstep = 1;VtsHight = 0; VtsHightmin = 0; VTScamtarget = lapin};
			if (typeof object3D == "ReammoBox")  then { VtsHightstep = 0.5;VtsHight = -0.5; VtsHightmin = -5};
	    object3D attachTo [lapin,[0,0,VtsHight]];
      ddisplacement=true;
    };
    case true:
    {
      sleep 0.25;
      hint "ok";
      detach object3D;
      ctrlSetText[10004,"Pick up"];
      ddisplacement=false;
    };
    };
  placingdone=0;
  };
  
	if (_killscript) exitwith {_killscript=false;};
	
	detach object3D;
	
	//closeDialog 0;
	camUseNVG false;
	//sleep 1;
	//if (mission_Over) then {titletext ["Mission Failed - all players are unconscious","BLACK", 4]; sleep 1};

	//deleteVehicle lapin;
	//spawn_x = getpos object3D select 0;
	//spawn_y =getpos object3D select 1;
	//spawn_z =(object3D modelToWorld [0,0,0]) select 2;
	//sleep 3;
	sleep 0.1;
	spawn_x = getPosASL object3D select 0;
	spawn_y = getPosASL object3D select 1;
	spawn_z = getPosASL object3D select 2;
	publicVariable "spawn_x";
	publicVariable "spawn_y";
	publicVariable "spawn_z";
	console_unit_orientation = getdir object3D;
	
	if (isServer) then 
	{
	if ((var_console_valid_type == "Vehicle") or (var_console_valid_type == "Matrl") or (var_console_valid_type == "Empty") or (var_console_valid_type == "Ship") or (var_console_valid_type == "Land")) then {
	sleep 2;
	//VtsHight =VtsHight + 6;
	_pos = getposASL lapin;
	_newheight = (_pos select 2) +6;
	//if (_newheight > 6) then {_newheight=6;};
	lapin setposASL [_pos select 0, _pos select 1, _newheight];
	};
	};
	object3D attachTo [lapin,[0,0,VtsHight]];
	_pos= getposASL lapin;
	From3D = true;
	publicvariable "From3D";
	
	//deleteVehicle object3D;

	nom_du_marqueur = "";

	publicvariable "console_valid_unite";
	publicvariable "var_console_valid_camp";
	publicvariable "var_console_valid_attitude";
	publicvariable "console_unit_moral";
	publicvariable "nom_console_valid_mouvement";
	publicvariable "var_console_valid_mouvement";
	publicvariable "console_unit_orientation";
	publicvariable "var_console_valid_type";
	publicvariable "console_unit_unite";
	publicvariable "var_console_valid_vitesse";
	publicvariable "console_nom";
	publicvariable "nom_console_valid_unite";
	publicvariable "console_init";
	publicvariable "nom_du_marqueur";
	publicvariable "console_unit_orientation";

	console_spawn = true;
	publicvariable "console_spawn";
	
  sleep 0.25;
  placingdone=0;
